package com.hang.model.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class FileUploadDTO {
    @ApiModelProperty(value = "上传时文件名",required = true)
    @NotBlank
    private String fileName;

    @ApiModelProperty(value = "模块id",required = true)
    @NotNull
    private Long moduleId;

    @ApiModelProperty(value = "模块名",required = true)
    @NotBlank
    private String moduleName;

    @ApiModelProperty(value = "文件路径",required = true)
    @NotBlank
    private String fileUrl;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人id",required = true)
    @NotNull
    private Long userId;

    @ApiModelProperty(value = "创建人姓名",required = true)
    @NotBlank
    private String realName;
}